﻿using System;
using Microsoft.SharePoint;

namespace Eneta.Portal.Common.Dto
{
    /// <summary>
    /// Class for blogs.
    /// </summary>
    public class BlogDto
    {
        /// <summary>
        /// Gets or sets the ID of blog.
        /// </summary>
        public int ID;

        /// <summary>
        /// Gets or sets the blog description.
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// Gets or sets the blog detail page file name.
        /// </summary>
        public string FileName { get; set; }

        /// <summary>
        /// Gets or sets the date of first entry.
        /// </summary>
        public DateTime FirstEntryDate { get; set; }

        /// <summary>
        /// Gets or sets the modification date of last changed entry.
        /// </summary>
        public DateTime EntryLastModified { get; set; }

        /// <summary>
        /// Gets or sets the date when blog data was last modified.
        /// </summary>
        public DateTime LastModified { get; set; }

        /// <summary>
        /// Gets or sets the name of the blog owner.
        /// </summary>
        public string OwnerName { get; set; }

        /// <summary>
        /// Gets or sets the name of the owner user.
        /// </summary>
        public string OwnerUserName { get; set; }

        /// <summary>
        /// Gets or sets the owner profile id.
        /// </summary>
        public int OwnerProfileId { get; set; }

        /// <summary>
        /// Gets or sets the blog RSS address.
        /// </summary>
        public string RssUrl { get; set; }

        /// <summary>
        /// Gets or sets the moderation status of blog.
        /// </summary>
        public SPModerationStatusType Status { get; set; }

        /// <summary>
        /// Gets or sets the status comment inserted by administrator when blog 
        /// is accepted or denied.
        /// </summary>
        public string StatusComment { get; set; }

        /// <summary>
        /// Gets or sets the title of the blog.
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// Gets or sets the URL of blog.
        /// </summary>
        public string Url { get; set; }

        /// <summary>
        /// Gets or sets the date when blog was added to portal.
        /// </summary>
        public DateTime Created { get; set; }

        /// <summary>
        /// Gets or sets the date when blog was last modified.
        /// </summary>
        public DateTime Modified { get; set; }
    }
}
